package com.lh.java.basic.datatype;

public class TestBoolean {
	public static void main(String[] args) {
		Boolean a = new Boolean("cc");
		if (a) {
			System.out.println(a);
		} else {
			System.out.println("not " + a);
		}
		System.out.println(Boolean.TRUE.compareTo(Boolean.TRUE));
		System.out.println(Boolean.TRUE.equals(Boolean.TRUE));
		Boolean a1 = new Boolean(true);
		Boolean a2 = new Boolean(true);
		System.out.println(a1.equals(a2));
		String s = a1.toString();
		System.out.println(s);

	}

}
